package com.xxxx.car.appointment.vo;

import com.xxxx.car.common.annotation.Excel;
import com.xxxx.car.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ServiceItemVo extends BaseEntity {

    public static final Long IS_MEAL = 1L;
    public static final Long NOT_MEAL = 0L;

    public static final Long SALE_STATUS_NO = 0L;
    public static final Long SALE_STATUS_YES = 1L;


    /** id */
    private Long id;

    /** 服务名称 */
    @NotBlank(message = "服务名称不能为空")
    private String name;

    /** 服务原价 */
    @NotNull(message = "服务原价不能为空")
    @Min(value = 0, message = "服务原价不能小于0")
    private BigDecimal originalPrice;

    /** 折扣价 */
    @NotNull(message = "折扣价不能为空")
    @Min(value = 0, message = "折扣价不能小于0")
    private BigDecimal discountPrice;

    /** 是否套餐(0=否,1=是) */
    @NotNull(message = "是否套餐不能为空")
    private Long isMeal;

    /** 服务分类(0=维修, 1=保养, 2=其它) */
    @NotNull(message = "服务分类不能为空")
    private Long serviceCatalog;

}
